﻿using System;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;

/// <summary>
/// 违章类别
/// </summary>
[Table("QHSE_XY_VIOLATION_CATEGORY")]
public class QHSESysViolationCategory : EntityBase
{
    public QHSESysViolationCategory()
    {
    }

    /// <summary>
    /// ID
    /// </summary>
    [Column("QHSE_XY_VIOLATION_CATEGORY_ID")]
    [MaxLength(32)]
    [Key]
    public string Id { get; set; }


    /// <summary>
    /// 类别编码
    /// </summary>
    [Column("CODE")]
    [MaxLength(100)]
    public string? Code { get; set; }

    /// <summary>
    /// 类别名称
    /// </summary>
    [Column("ITEM")]
    [MaxLength(500)]
    public string? Item { get; set; }

    /// <summary>
    /// 取值
    /// </summary>
    [Column("VALUE")]
    [MaxLength(500)]
    public string? Value { get; set; }


    /// <summary>
    /// 父ID
    /// </summary>
    [MaxLength(100)]
    [Column("PARENT_ID")]
    public string? ParentId { get; set; }
    /// <summary>
    /// 对应体系要素编码
    /// </summary>
    [MaxLength(100)]
    [Column("HSE_CODE")]
    public string? HSECode { get; set; }
    /// <summary>
    /// 对应安全沟通类型编码2
    /// </summary>
    [MaxLength(100)]
    [Column("OBSERVE_CODE")]
    public string? ObserveCode { get; set; }
    /// <summary>
    /// 备注
    /// </summary>
    [Column("NOTE")]
    [MaxLength(200)]
    public string? Note { get; set; }

    /// <summary>
    /// 排序号
    /// </summary>
    [Column("ORDER_NO")]
    public int? OrderNo { get; set; }
}
